import 'package:json_annotation/json_annotation.dart';

part 'role_model.g.dart';


@JsonSerializable()
class RoleModel extends Object {

  @JsonKey(name: 'avatar')
  String? avatar;

  @JsonKey(name: 'nickname')
  String nickname;

  RoleModel(this.avatar,this.nickname,);

  factory RoleModel.fromJson(Map<String, dynamic> srcJson) => _$RoleModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$RoleModelToJson(this);

}


